#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QMouseEvent>
#include <string>

namespace Ui {
class widget;
}

class widget : public QGraphicsView
{
    Q_OBJECT

public:
    explicit widget(QWidget *parent = 0);
    ~widget();

private:
    int w, h, x, y;
    QGraphicsScene * scene;
    Ui::widget *ui;

    void drowCircle(const QPoint &);
    void drowSquare(const QPoint &);
    void mousePressEvent(QMouseEvent*);
};

#endif // WIDGET_H
